package cn.initcap.exception;

import cn.initcap.common.ErrorCode;

/**
 * @author initcap
 * @date 2018/8/10 PM2:27
 */
public class GlobalException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private ErrorCode cm;

    public GlobalException(ErrorCode cm) {
        super(cm.toString());
        this.cm = cm;
    }

    public ErrorCode getCm() {
        return cm;
    }

}
